cmake_minimum_required(VERSION 3.16)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
project(DemoTest)
message(">>>demo_root" = ${demo_root})
add_subdirectory(${demo_root}/dependencies/googletest googletest)
add_executable(test_calc ./test_calc.cpp)
# target_include_directories(test_calc PUBLIC ${demo_root}/dependencies/googletest/include)
# target_include_directories(test_calc PUBLIC ${demo_root})
target_link_libraries(test_calc PUBLIC calc gtest gtest_main)
add_test(NAME test_calc COMMAND test_calc)
